package com.minivision.sdktestdemo.utils;

/**
 * Created by devtang on 2016/5/17.
 */
public class TextFormatUtils {
    public static String getMusicTime(long millseconds) {
        //显示转换过的时间
        int minute = (int) Math.floor(((double) millseconds / (1000.0 * 60.0)));
        int second = (int) Math.floor((double) millseconds / 1000.0);
        second %= 60;
        String ans = String.format("%02d:%02d", minute, second);
        return ans;
    }
}
